package com.example.workbench.service;

import com.example.workbench.common.api.CommonResult;
import com.example.workbench.common.command.AddUserCommand;
import com.example.workbench.common.command.LoginUserCommand;
import com.example.workbench.entity.DbUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.poi.ss.formula.functions.T;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2024-06-26
 */
public interface IDbUserService extends IService<DbUser> {

    CommonResult register(AddUserCommand command) throws Exception;


    CommonResult doLogin(LoginUserCommand command) throws Exception;

    CommonResult getCode() throws IOException;
}
